package com.dao;

import java.io.Serializable;
import java.util.List;

import com.enetiy.Ticket;
import com.enetiy.Ticketuser;
import com.util.PagingUilt;

public interface TicketDao {
	//加入用户券包
	public Serializable insertTickeUser(Ticketuser ticketuser) throws Exception;
	//修改券包
	public void updateTickeUser(Ticketuser ticketuser) throws Exception;
	//根据券包id
	public Ticketuser selectTicketuser(int id) throws Exception;
	
	
	//查所有系统券
	public List<Ticket> selectTicketList() throws Exception;
	//查用户用户所有券
	public List<Ticketuser> selectTicketuserList( int userid) throws Exception;
	//查用户券包某一类型所以全
	public List<Ticketuser> selectTicketuserList( int userid , String iden) throws Exception;
	
	//根据券标示查询系统券
	public Ticket selectTicket(String iden) throws Exception;
	
	
	//查用户券包某一类型(已/未领取)
	public List<Ticketuser> selectTicketuserList( int userid ,int isGet) throws Exception;
	//分页查用户券包用户已领取券
	public void selectTicketuserPU(PagingUilt<Ticketuser> pu,int userid) throws Exception;	
}
